<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      PCRE2-10.34
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;9.&nbsp;General Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="pcre.html" title="PCRE-8.44">Prev</a>
          <p>
            PCRE-8.44
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="popt.html" title="Popt-1.16">Next</a>
          <p>
            Popt-1.16
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="pcre2" name="pcre2"></a>PCRE2-10.34
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to PCRE2
        </h2>
        <p>
          The <span class="application">PCRE2</span> package contains a new
          generation of the <span class="application">Perl Compatible Regular
          Expression</span> libraries. These are useful for implementing
          regular expression pattern matching using the same syntax and
          semantics as <span class="application">Perl</span>.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/pcre/pcre2-10.34.tar.bz2">https://downloads.sourceforge.net/pcre/pcre2-10.34.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: d280b62ded13f9ccf2fac16ee5286366
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 18 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.5 SBU (with tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          PCRE2 Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="valgrind.html" title=
          "Valgrind-3.15.0">Valgrind-3.15.0</a> and <a class="ulink" href=
          "https://www.cs.utah.edu/~bigler/code/libedit.html">libedit</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/pcre2">http://wiki.linuxfromscratch.org/blfs/wiki/pcre2</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of PCRE2
        </h2>
        <p>
          Install <span class="application">PCRE2</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr                       \
            --docdir=/usr/share/doc/pcre2-10.34 \
            --enable-unicode                    \
            --enable-jit                        \
            --enable-pcre2-16                   \
            --enable-pcre2-32                   \
            --enable-pcre2grep-libz             \
            --enable-pcre2grep-libbz2           \
            --enable-pcre2test-libreadline      \
            --disable-static                    &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--enable-unicode</code></em>: This
          switch enables Unicode support and includes the functions for
          handling UTF-8/16/32 character strings in the library.
        </p>
        <p>
          <em class="parameter"><code>--enable-pcre2-16</code></em>: This
          switch enables 16 bit character support.
        </p>
        <p>
          <em class="parameter"><code>--enable-pcre2-32</code></em>: This
          switch enables 32 bit character support.
        </p>
        <p>
          <em class="parameter"><code>--enable-pcre2grep-libz</code></em>:
          This switch adds support for reading .gz compressed files to
          <span class="application">pcre2grep</span>.
        </p>
        <p>
          <em class="parameter"><code>--enable-pcre2grep-libbz2</code></em>:
          This switch adds support for reading .bz2 compressed files to
          <span class="application">pcre2grep</span>.
        </p>
        <p>
          <em class=
          "parameter"><code>--enable-pcre2test-libreadline</code></em>: This
          switch adds line editing and history features to the <span class=
          "application">pcre2test</span> program.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <em class="parameter"><code>--enable-jit</code></em>: this option
          enables Just-in-time compiling, which can greatly speed up pattern
          matching.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">pcre2-config, pcre2grep, and
              pcre2test.</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libpcre2-8.so, libpcre2-16.so,
              libpcre2-32.so, and libpcre2-posix.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/share/doc/pcre2-10.34</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="pcre2grep" name="pcre2grep"></a><span class=
                    "term"><span class=
                    "command"><strong>pcre2grep</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a version of <span class="application">grep</span>
                    that understands <span class="application">Perl
                    compatible regular expressions.</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="pcre2test" name="pcre2test"></a><span class=
                    "term"><span class=
                    "command"><strong>pcre2test</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    can test a <span class="application">Perl compatible
                    regular expression.</span>
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="pcre2-config" name="pcre2-config"></a><span class=
                    "term"><span class=
                    "command"><strong>pcre2-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    outputs compilation information to programs linking
                    against the <span class="application">PCRE2</span>
                    libraries.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 10:54:30 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="pcre.html" title="PCRE-8.44">Prev</a>
          <p>
            PCRE-8.44
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="popt.html" title="Popt-1.16">Next</a>
          <p>
            Popt-1.16
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
